package com.woniuxy.cloud.carl.store.common;



public enum StoreStateEnum {
    STORE_ON(1,"营业中"),STORE_OFF(2,"歇业中"),STORE_DISAPPEAR(3,"注销");
    Integer code;
    String state;

   StoreStateEnum(Integer code, String state) {
        this.code = code;
        this.state = state;
    }
    public static StoreStateEnum getStoreState(Integer code){
        for (StoreStateEnum value : StoreStateEnum.values()) {
            if (value.code==code) return value;
        }
        return null;
    }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
